#!/bin/sh


ip=1
while [ $ip -ne "254" ]; do
	ping 192.168.1.$ip -c 2 | grep -q "ttl=" && echo "192.168.1.$ip OK" || echo "192.168.1.$ip FAILED"
	ip=$(expr "$ip" "+" "1")
done
